#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int arrA[8] = { 1,2,5,3,6,7,8,5 };
	int arrB[8] = { 2,1,4,5,2,1,2,6 };
	for (int i = 0; i < 8; i++)
	{
		int swap = 0;
		swap = arrA[i];
		arrA[i] = arrB[i];
		arrB[i] = swap;
	}
	for (int i = 0; i < 8; i++)
	{
		printf("%d\t", arrA[i]);
	}
	printf("\n");
	for (int j = 0; j < 8; j++)
	{
		printf("%d\t", arrB[j]);
	}
	return 0;
}